import {
  Column,
  CreateDateColumn,
  Entity,
  JoinColumn,
  PrimaryGeneratedColumn,
  UpdateDateColumn,
} from 'typeorm';

/**
 * 短信记录
 */
@Entity({
  name: 'sms_log',
})
export class SmsLogEntity {
  @PrimaryGeneratedColumn()
  id?: number;
  @Column({ length: 20 })
  type?: 'verify_code';
  @Column({ length: 20 })
  content?: string;
  @Column({ nullable: true })
  receiver_user_id?: number;
  @Column({ nullable: true, length: 13 })
  receiver_phone?: string;
  @CreateDateColumn()
  create_time?: Date;
  @UpdateDateColumn()
  update_time?: Date;
}
